package com.org.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.org.bean.setting.DepartInfo;
import com.org.dao.setting.DepartInfoMapper;
import com.org.service.DepartService;

@Service("departServices")
public class DepartServiceimpl implements DepartService {
	@Autowired
	private DepartInfoMapper departInfoMapper;

	@Override
	public List<DepartInfo> findAll() {
		// TODO Auto-generated method stub
		return departInfoMapper.findAll();
	}

	@Override
	public List<DepartInfo> findById(int departId) {
		// TODO Auto-generated method stub
		return departInfoMapper.findById(departId);
	}

	@Override
	public boolean addDepart(DepartInfo departInfo) {
		// TODO Auto-generated method stub
		return departInfoMapper.addDepart(departInfo);
	}

	@Override
	public boolean deleteDepart(int departId) {
		// TODO Auto-generated method stub
		return departInfoMapper.deleteDepart(departId);
	}

	@Override
	public boolean updateDepart(DepartInfo departInfo) {
		// TODO Auto-generated method stub
		return departInfoMapper.updateDepart(departInfo);
	}

	@Override
	public List<DepartInfo> findByRegion(int regionId) {
		// TODO Auto-generated method stub
		return departInfoMapper.findByRegion(regionId);
	}

}
